package com.road.dao;


import java.sql.SQLException;

import com.road.model.User;

public interface IUserDao {
    //用户邮件激活    
	int activeUser(String code) throws SQLException;
	//保存用户
	int save(User user) throws SQLException;
	//根据email获取用户	
	int getUserByEmail(User user) throws SQLException;
	//根据email获取用户	
	int getUserByToken(User token) throws SQLException;
	//用户登录	
	User login(User user) throws SQLException;
	//检测手机号是否被使用
	boolean getUserByPhone(User user)throws SQLException;
	//更新用户头像
	boolean updateUserIcon(User user,String url)throws SQLException;

}
